package org.komarichin.beans.dao;

import org.komarichin.beans.INews;

import java.io.Serializable;
import java.util.Collection;

/**
 * User: Michael Komarichin
 * Date: 14.10.2009
 * Time: 10:58:36
 */
public interface INewsDAO extends Serializable {
    INews save(INews news);

    void update(INews news);

    void remove(INews news);

    INews findById(Long id);

    @SuppressWarnings("unchecked")
    Collection<INews> getAll();

    INews getNewInstance();
}
